<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <title>友情链接</title>
    <script type='text/javascript' src='http://localhost/cms/hdphp/hdphp/Extend/Org/Jquery/jquery-1.8.2.min.js'></script>
<link href='http://localhost/cms/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/cms/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
HOST = '<?php echo $GLOBALS['user']['HOST'];?>';
ROOT = '<?php echo $GLOBALS['user']['ROOT'];?>';
WEB = '<?php echo $GLOBALS['user']['WEB'];?>';
URL = '<?php echo $GLOBALS['user']['URL'];?>';
HDPHP = '<?php echo $GLOBALS['user']['HDPHP'];?>';
HDPHPDATA = '<?php echo $GLOBALS['user']['HDPHPDATA'];?>';
HDPHPTPL = '<?php echo $GLOBALS['user']['HDPHPTPL'];?>';
HDPHPEXTEND = '<?php echo $GLOBALS['user']['HDPHPEXTEND'];?>';
APP = '<?php echo $GLOBALS['user']['APP'];?>';
CONTROL = '<?php echo $GLOBALS['user']['CONTROL'];?>';
METH = '<?php echo $GLOBALS['user']['METH'];?>';
GROUP = '<?php echo $GLOBALS['user']['GROUP'];?>';
TPL = '<?php echo $GLOBALS['user']['TPL'];?>';
CONTROLTPL = '<?php echo $GLOBALS['user']['CONTROLTPL'];?>';
STATIC = '<?php echo $GLOBALS['user']['STATIC'];?>';
PUBLIC = '<?php echo $GLOBALS['user']['PUBLIC'];?>';
HISTORY = '<?php echo $GLOBALS['user']['HISTORY'];?>';
HTTPREFERER = '<?php echo $GLOBALS['user']['HTTPREFERER'];?>';
</script>
    <link href='http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/css/bootstrap.min.css' rel='stylesheet' media='screen'>
<script src='http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/bootstrap.min.js'></script>
                <!--[if lte IE 6]>
                <link rel="stylesheet" type="text/css" href="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/ie6/css/bootstrap-ie6.css">
                <![endif]-->
                <!--[if lt IE 9]>
                <script src="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/html5shiv.min.js"></script>
                <script src="http://localhost/cms/hdphp/hdphp/Extend/Org/bootstrap/js/respond.min.js"></script>
                <![endif]-->
    <link type="text/css" rel="stylesheet" href="http://localhost/cms/Static/css/common.css"/>
</head>
<body>
<div class="wrap">
    <table class="table2">
        <thead>
        <tr>
            <td width="50">fid</td>
            <td width="100">链接名称</td>
            <td width="200">链接描述</td>
            <td width="180">添加时间</td>
            <td width="50">排序</td>
            <td width="100">链接Logo</td>
            <td>链接地址</td>
            <td width="80">是否显示</td>
            <td>操作</td>
        </tr>
        </thead>
        <tbody>
            <?php if(is_array($data)):?><?php  foreach($data as $v){ ?>    
                <tr>
                    <td width="50"><?php echo $v['fid'];?></td>
                    <td><?php echo $v['fname'];?></td>
                    <td width="100"><?php echo $v['msg'];?></td>
                    <td width="200"><?php echo date('Y-m-d H:i:s',$v['addtime']);?></td>
                    <td width="50"><?php echo $v['sort'];?></td>
                    <td width="100"><img src="<?php echo $v['logo'];?>" height="50" /></td>
                    <td width="80"><?php echo $v['url'];?></td>
                    <td>
                        <?php if($v['is_show'] == 1){?>
                            <a href="javascript:;" onclick="hd_ajax('<?php echo U('Category/ajax_update_stat');?>',{fid :<?php echo $v['fid'];?>,type:'list',switch : 'off'})">√</a>
                        <?php  }else{ ?>
                            <a href="javascript:;" onclick="hd_ajax('<?php echo U('Category/ajax_update_stat');?>',{fid :<?php echo $v['fid'];?>,type:'list',switch : 'on'})">×</a>
                        <?php }?>
                    </td>
                    <td widt="150">
                        <a href="<?php echo U('Flink/edit',array('fid'=>$v['fid']));?>" class="btn btn-info btn-xs">编辑</a>
                        <a href="javascript:;" class="btn btn-danger btn-xs" onclick="if(confirm('确定删除吗？')) location.href='<?php echo U('Flink/del',array('fid'=>$v['fid']));?>'">删除</a>
                    </td>
                </tr>
            <?php }?><?php endif;?>
        </tbody>
    </table>
    <div class="page_hdjob">
       <?php echo $page;?>
    </div>
</div>

</body>
</html>


